﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200135D RID: 4957
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeOffAvatarSkinCsReq : IMessage<TakeOffAvatarSkinCsReq>, IMessage, IEquatable<TakeOffAvatarSkinCsReq>, IDeepCloneable<TakeOffAvatarSkinCsReq>, IBufferMessage
	{
		// Token: 0x17003E8B RID: 16011
		// (get) Token: 0x0600DDF9 RID: 56825 RVA: 0x002524E4 File Offset: 0x002506E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeOffAvatarSkinCsReq> Parser
		{
			get
			{
				return TakeOffAvatarSkinCsReq._parser;
			}
		}

		// Token: 0x17003E8C RID: 16012
		// (get) Token: 0x0600DDFA RID: 56826 RVA: 0x002524EB File Offset: 0x002506EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeOffAvatarSkinCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003E8D RID: 16013
		// (get) Token: 0x0600DDFB RID: 56827 RVA: 0x002524FD File Offset: 0x002506FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeOffAvatarSkinCsReq.Descriptor;
			}
		}

		// Token: 0x0600DDFC RID: 56828 RVA: 0x00252504 File Offset: 0x00250704
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeOffAvatarSkinCsReq()
		{
		}

		// Token: 0x0600DDFD RID: 56829 RVA: 0x0025250C File Offset: 0x0025070C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeOffAvatarSkinCsReq(TakeOffAvatarSkinCsReq other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DDFE RID: 56830 RVA: 0x00252531 File Offset: 0x00250731
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeOffAvatarSkinCsReq Clone()
		{
			return new TakeOffAvatarSkinCsReq(this);
		}

		// Token: 0x17003E8E RID: 16014
		// (get) Token: 0x0600DDFF RID: 56831 RVA: 0x00252539 File Offset: 0x00250739
		// (set) Token: 0x0600DE00 RID: 56832 RVA: 0x00252541 File Offset: 0x00250741
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x0600DE01 RID: 56833 RVA: 0x0025254A File Offset: 0x0025074A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeOffAvatarSkinCsReq);
		}

		// Token: 0x0600DE02 RID: 56834 RVA: 0x00252558 File Offset: 0x00250758
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeOffAvatarSkinCsReq other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DE03 RID: 56835 RVA: 0x00252588 File Offset: 0x00250788
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DE04 RID: 56836 RVA: 0x002525C7 File Offset: 0x002507C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DE05 RID: 56837 RVA: 0x002525CF File Offset: 0x002507CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DE06 RID: 56838 RVA: 0x002525D8 File Offset: 0x002507D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DE07 RID: 56839 RVA: 0x0025260C File Offset: 0x0025080C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DE08 RID: 56840 RVA: 0x0025264A File Offset: 0x0025084A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeOffAvatarSkinCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DE09 RID: 56841 RVA: 0x0025267B File Offset: 0x0025087B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DE0A RID: 56842 RVA: 0x00252684 File Offset: 0x00250884
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.AvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005815 RID: 22549
		private static readonly MessageParser<TakeOffAvatarSkinCsReq> _parser = new MessageParser<TakeOffAvatarSkinCsReq>(() => new TakeOffAvatarSkinCsReq());

		// Token: 0x04005816 RID: 22550
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005817 RID: 22551
		public const int AvatarIdFieldNumber = 7;

		// Token: 0x04005818 RID: 22552
		private uint avatarId_;
	}
}
